const fs = require('fs')

const deleteAttachment = async (urls) => {
    if (urls) {
        urls.forEach(fileObj=> {
            fs.unlink(fileObj.url, (err)=> {
                if (err) console.log(err)
            })
        })
    }
}

module.exports = deleteAttachment